package com.xinbochuang.machine.admin.service.macRoom;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xinbochuang.machine.admin.domain.macRoom.EquCabinet;
import com.xinbochuang.machine.admin.domain.macRoom.Equipment;
import com.xinbochuang.machine.admin.domain.macRoom.MacRoom;
import com.xinbochuang.machine.admin.domain.macRoom.Ulocation;
import com.xinbochuang.machine.admin.domain.system.SysUser;
import com.xinbochuang.machine.admin.dto.MacRoomDto;

/**
 *
 * @author 杜文博
 * @date 2020-09-08
 */
public interface IMacRoomService extends IService<MacRoom> {

	IPage<MacRoom> findMacRoomByNameForPage(MacRoom macRoom);

	List<MacRoom> findMacRoomByName(String macName);

	List<MacRoom> equAllList(MacRoom macRoom);

	//添加修改机房负责人
	int addMacPrincipal(MacRoom macRoom);

	//批量添加机房安全员
	int addMacGuard(MacRoomDto macRoomDto);

	//查询机房详情
	MacRoom getMacDetail (String uuid);

	//查询安全员
	List<SysUser> getMacGuard();

	List<EquCabinet> finEquCabinetListByMacId(String macId);

	boolean updateByMacId(String macId);

	int insertMacroom (MacRoom macRoom);

	int insertEquCabinet (EquCabinet equCabinet);

	int inserEquipment(Equipment equipment);

	int delteMacroomById (String macRoomId);

	int insertUlocation(Ulocation ulocation);


}
